<?php
declare (strict_types = 1);

namespace app\controller\api;

use app\BaseController as AppBaseController;


class BaseController extends AppBaseController
{
    protected $siteId;
    protected $sellerId;
    protected $theme;
    protected $lang;


    /**
     * @throws \app\exception\ModelException
     * @throws \Exception
     */
    public function initialize()
    {
        parent::initialize();
    }

    public function setLimit(): int
    {
        $limit = 10;
        $limitPage = (int)input('param.limit');
        if($limitPage){
            $limit = $limitPage;
        }
        return $limit;
    }

}
